package org.jeecg.modules.demo.hydrology.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.demo.hydrology.dto.DhssDto;
import org.jeecg.modules.demo.hydrology.service.IDhssService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@Api(tags="井下传感器 实时监测量")
@RestController
@RequestMapping("/hydrology/dhss")
@Slf4j
public class DhssController {
    @Autowired
    private IDhssService dhssService;

    //@AutoLog(value = "井下传感器 实时监测查询")
    @ApiOperation(value="井下传感器 实时监测查询", notes="井下传感器 实时监测查询")
    @GetMapping(value = "/getDhss/{stationCode}")
    public Result<DhssDto> getDhss(@PathVariable String stationCode) {
        DhssDto  dhssDto = dhssService.getDhss(stationCode);
        return Result.OK(dhssDto);
    }
}
